package com.piece.core.oauth.properties;

import lombok.Data;
import java.time.Duration;

@Data
public class CacheProperties {

    private CacheProperties.CacheType type;
    private String prefix;
    private Duration timeout;

    public enum CacheType {
        DEFAULT,
        REDIS,
        CUSTOM;

        CacheType() {
        }

        public String toString() {
            return "CacheProperties.CacheType." + this.name();
        }
    }
}
